import { memo } from 'react';
import { Button } from 'tdesign-react';
import { CheckCircleIcon } from 'tdesign-icons-react';
import instance from '@/utils/request';
import style from './index.module.less';
import { useNavigate } from 'react-router-dom';

const Success = () => {
  const navigate = useNavigate();
  return (
    <div className={style.Content}>
      <CheckCircleIcon className={style.icon} />
      <div className={style.title}>预约成功</div>
      <div className={style.description}>可以联系管理员快速审批</div>
      <div>
        <Button onClick={() => navigate('/')}>返回首页</Button>
        <Button className={style.rightButton} theme='default'>
          查看进度
        </Button>
      </div>
    </div>
  );
};

export default memo(Success);
